import request from "../utils/request";

// 新增试题
export const addQuestion = data => {
    return request({
        method: 'POST',
        url:'/questions/add',
        data
    })
}
// 试题列表
export const questionList = data => {
    return request({
        method: 'POST',
        url:'/questions/findPage',
        data
    })
}
// 删除试题
export const delQuestion = id => {
    return request({
        method: 'GET',
        url:'/questions/delete?id=' + id
    })
}
// 编辑试题
export const editQuestion = data => {
    return request({
        method: 'POST',
        url:'/questions/edit',
        data
    })
}
//试题打组
export const playQuestion = data => {
    return request({
        method: 'POST',
        url:'/questions/groupAdd',
        data
    })
}
//试题组列表
export const playQuestionList = data => {
    return request({
        method: 'POST',
        url:'/questions/groupFindPage',
        data
    })
}
//修改试题组
export const editPlayQuestion = data => {
    return request({
        method: 'POST',
        url:'/questions/groupEdit',
        data
    })
}
//删除试题组
export const delPlayQuestion = id => {
    return request({
        method: 'GET',
        url:'/questions/deleteGroupById?id=' + id
    })
}
//删除试题组
export const applyPlayQuestion = id => {
    return request({
        method: 'GET',
        url:'/questions/fBGroup?id=' + id
    })
}
